package com.feidee.data.report.model;

import java.io.Serializable;

public class FunnelResult implements Comparable<FunnelResult>, Serializable {
	private String index;
	private String num;

	public FunnelResult() {
	}

	public FunnelResult(String index, String num) {
		this.index = index;
		this.num = num;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	@Override
	public int compareTo(FunnelResult o) {
		int i = Integer.valueOf(this.getIndex()) - Integer.valueOf(o.getIndex());
		return i;
	}

	@Override
	public String toString() {
		return "{" +
				"index='" + index + '\'' +
				", num='" + num + '\'' +
				'}';
	}
}
